import math


def lcm(a, b):
    return math.lcm(a, b)


def main():
    n, m = map(int, input().split())
    print(lcm(n, m))


# 调用主函数启动程序
if __name__ == "__main__":
    main()
